package LogisticsSystem.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

import LogisticsSystem.mapper.OrdersMapper;
import LogisticsSystem.mapper.ext.OrderExtendMapper;
import LogisticsSystem.po.Orders;
import LogisticsSystem.po.ext.OrderExtend;
import LogisticsSystem.service.OrderService;

/**
 * @author 作者 slim
 * @version 创建时间：2017年11月21日 下午10:07:42 类说明
 */
@Service
public class OrderServiceImpl implements OrderService {

	@Autowired
	OrdersMapper orderMapper;
	
	@Autowired
	OrderExtendMapper orderExtendMapper;

	@Override
	public List<OrderExtend> getOrderExtendList() {
		return orderExtendMapper.selectOrderExtendList();
	}

	@Override
	public int updateOrders(Orders orders) {
		return orderMapper.updateByPrimaryKeySelective(orders);
	}

	@Override
	public int selectMaxOid() {
		return orderMapper.selectMaxOrder();
	}

	@Override
	public List<OrderExtend> selectOrderExtendList0() {	
		return orderExtendMapper.selectOrderExtendList0();
	}

	@Override
	public Orders selectById(Integer oId) {
		
		return orderMapper.selectByPrimaryKey(oId);
	}

}
